package cn.jxwazx.sheinspringboot.mapper;

import cn.jxwazx.sheinspringboot.entity.BaseNameValue;
import cn.jxwazx.sheinspringboot.entity.param.Top10Param;
import cn.jxwazx.sheinspringboot.entity.po.ProductList;
import cn.jxwazx.sheinspringboot.entity.vo.ActiveVo;
import cn.jxwazx.sheinspringboot.entity.vo.GMVVo;
import cn.jxwazx.sheinspringboot.entity.vo.Top10ProductVo;
import cn.jxwazx.sheinspringboot.entity.vo.Top10Vo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author LoveHuaHua
 * @date 2024年03月14日 11:33
 * @description believe in yourself
 */
@Mapper
public interface ProductListMapper extends BaseMapper<ProductList> {

    /**
     *
     * @return
     */
    List<BaseNameValue<String, String>> getTypeList(String typeField);

    /**
     * 展示一级类目的GMV信息
     * @return
     */
    List<GMVVo> selectGMV();

    List<ActiveVo> selectActive();

    Page<Top10Vo> top10(Page<Object> page, @Param("param") Top10Param param);

    /**
     * 一级类目热销产品
     * @param page
     * @param param
     * @return
     */
    Page<Top10ProductVo> top10Product(Page<Object> page, @Param("param") Top10Param param);
}